<script setup>
const paddingTop = wx.getSystemInfoSync().statusBarHeight - 12;
</script>

<template>
	<view>
		<div class="nav" :style="{ paddingTop: `${paddingTop}px` }">
		  <image class="logo" src="@/static/logo.png"></image>
		  <span>绿贝生活</span>
		</div>
	</view>
</template>



<style scoped>
.nav {
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: left;
  align-items: center;
}

.logo {
  margin-top: 2px;
  width: 36px;
  height: 36px;
  margin-right: 5px;
}
</style>